unit uLogin;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, Mask;

type
  TfmLogin = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    edLogin: TEdit;
    mePassword: TMaskEdit;
    edConnectionString: TEdit;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
  private
    { Private declarations }
  public
    { Public declarations }
    Login : string;
    Password : string;
    ConnectionString : string;

    function Execute : boolean;
  end;

var
  fmLogin: TfmLogin;

implementation

{$R *.dfm}

function TfmLogin.Execute : boolean;
begin
  result := false;

  Login := '';
  Password := '';
  ConnectionString := '';

  if (ShowModal = mrOk) then
  begin
    Login := edLogin.Text;
    Password := mePassword.Text;
    ConnectionString := edConnectionString.Text;

    result := true;
  end;
end;

end.
